package com.datseek.iot.rule.manager.entity;

import lombok.Getter;
import lombok.Setter;

/**
 * @author cc
 * @Title: 规则执行结果
 * @Description: 规则执行结果
 * @date 2021/9/172:52 下午
 * @since 1.0
 */
@Getter
@Setter
public class RuleExecutorResult {

    // 匹配总数
    private int count;

    // 执行成功
    private int success;

    // 执行失败
    private int failure;

    public void addCount() {
        this.count += 1;
    }

    public void addFailure() {
        this.failure += 1;
    }

    public void addSuccess() {
        this.success += 1;
    }

}
